package com.ibeeking.found.msg.service.common.param;

import com.ibeeking.found.common.enums.mp.WxMpSourceTypeEnum;
import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName WxMpSourceDO
 * @Description
 * @Author ibeeking
 * @Date 2020-12-30 14:12
 **/
@Data
public class WxMpSourceParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "素材id不能为空", groups = BaseValidationGroup.Update.class)
    private Long id;

    /**
     * 公众号id
     */
    @NotNull(message = "公众号appid不能为空")
    private String appId;

    /**
     * 所属组
     */
    private Long groupId;

    /**
     * 名称
     */
    @NotBlank(message = "素材标题不能为空")
    private String name;

    /**
     * 资源类型:1=TEXT;2=PIC;3=VOICE;4=VIDEO;5=IMAGE_TEXT;6=MUSIC;7=THUMB
     */
    @NotNull(message = "资源类型不能为空")
    private String sourceType;

    /**
     * OSS地址
     */
    private String path;

    /**
     * 备注
     */
    private String remark;

    private Long createBy;

    private Long modifyBy;

    private List<WxMpSourceDetailParam> sourceDetail;
}
